@include("system::admin.layouts._header")
<body>
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" method="post">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">物流信息</li>
                <li>物流动态</li>
            </ul>

            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">快递公司</label>
                        <div class="layui-input-block">
                            <select name="delivery_type" id="delivery_type" lay-filter="delivery_type">
                                <option value="0">请选择快递公司</option>
                                @foreach($expressList as $alias => $express)
                                    <option value="{{$alias}}"
                                            @if($order->delivery_type == $alias) selected @endif>{{$express}}</option>
                                @endforeach
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label required">快递单号</label>
                        <div class="layui-input-block">
                            <input type="text" name="delivery_code" class="layui-input" lay-verify="required"
                                   lay-reqtext="请输入快递单号" placeholder="请输入快递单号" value="{{$order->delivery_code}}">
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item">

                    <table class="layui-table">
                        <tbody>
                        @foreach($logistics as $log)
                        <tr>
                            <td>{{$log['time']}}</td>
                            <td>{{$log['context']}}</td>
                        </tr>
                        @endforeach
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <input type="hidden" name="id" value="{{$order->id}}">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>
    </form>
</div>

</body>
</html>
